from django.db import models
from utils.models import CoreModel   


class UserPartner(CoreModel):
    partner_id = models.IntegerField(primary_key=True, help_text="客户号主键", verbose_name="客户号主键")
    price_list = models.BooleanField(null=True, blank=True, verbose_name='是否显示价格表', help_text='是否显示价格表')
    credit_point = models.DecimalField(null=True, max_digits=10, decimal_places=2, blank=True, verbose_name='信用额度', help_text='信用额度')
    is_payonline = models.BooleanField(null=True, blank=True, verbose_name='是否在线支付', help_text='是否在线支付')    
    user_id = models.CharField(null=True, blank=True, max_length=16, verbose_name='用户ID', help_text='用户ID')

    class Meta:
        db_table = 'user2partner'
        verbose_name = '用户伙伴信用表'
        verbose_name_plural = verbose_name
        ordering = ('-creation_on',)
    